home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 9
/
Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO
/
010a
/
super25n.zip
/
INIT.DOC
< prev
next >
Wrap
Text File
|
1993-01-05
|
4KB
|
108 lines
┌───────────────────────────────┐
│ SuperLib 2.50 │
│ For Clipper S87 and 5.01 │
│ ------------------------- │
│ copyright 1990 │
│ Garry A Prefontaine │
└───────────────────────────────┘
Initialization
--------------
INITSUP() is the SuperLib function which initializes global (public)
variables for color, paths and other things.
The first time INITSUP() is called, it simply initializes the global
variables expected by SuperLib functions if they are not already present.
On subsequent calls, INITSUP() does nothing.
The variables are:
QUERY_EXP
---------
QUERY_EXP is set to "". This is the global variable used to store the last
query built with QUERY(), and is accessed by many Super.Lib functions.
_SUPERPRN
---------
_SUPERPRN is set to "LPT1". This is the default printer for Super.Lib
output.
_CHECKPRN
---------
_CHECKPRN is initialized to .T. This variable tells P_READY() whether or
not it should attempt to check the printer status. On a redirected
printer on a LAN this should be set to .F., as ISPRN() will not work
reliably.
_SUPISCOLOR
-----------
INITSUP() will look for a variable called _SUPISCOLOR. If it is present
and of type "L", its value will be used in place of ISCOLOR(). You may
want to initialize a public variable _SUPISCOLOR and set it to .f.
if you have one of those card/monitor combos that fool ISCOLOR().
COLOR VARIABLES
(see also COLORS.DOC)
--------------------
C_NORMCOL - for normal input/output
C_NORMMENU - for normal 'menu to' operations
C_POPCOL - for popup box colors
C_POPMENU - for popup box menus
C_FRAME - frame string ("┌─┐│┘─└│ ")
C_SHADATT - shadow color attribute (numeric)
C_SHADPOS - shadow position (0,1,3,7,9)
C_XPLODE - logical - explode windows?
The defaults for a color monitor: The defaults for a mono monitor:
C_NORMCOL = 'W/B,GR+/R,,,W/N' C_NORMCOL = 'W/N,N/W,,,+W/N'
C_NORMMENU = 'W/B,N/R,,,W/N' C_NORMMENU = 'W/N,N/W,,,+W/N'
C_POPCOL = 'N/BG,N/W,,,BG+/N' C_POPCOL = 'N/W,+W/N,,,W/N'
C_POPMENU = 'N/BG,W+/N,,,BG+/N' C_POPMENU = 'N/W,W/N,,,+W/N'
C_FRAME = "┌─┐│┘─└│ " C_FRAME = "┌─┐│┘─└│ "
C_SHADATT = 7 C_SHADATT = 8
C_SHADPOS = 1 C_SHADPOS = 1
C_XPLODE = .T. C_XPLODE = .T.
Advanced INITSUP() settings
---------------------------
System files (used by Super.Lib) all have default
names which may be overridden. The defaults are
contained in a set of public variables. They are:
_REPORTS = "SFREPORT" (for reports)
_FORMS = "FORM" (for form letters)
_QUERIES = "QUERIES" (for queries)
_LISTER = "PLIST" (for lister)
_TODODBF = "TODO" (for todo list)
_TODONTX1 = "TODO" (TODO category INDEX)
_TODONTX2 = "TODOP" (TODO priority INDEX)
_TODONTX3 = "TODOD" (TODO do by INDEX)
_HELP = "HELP" (for help)
_SCROLLER = "SCROLLER" (for scroller)
_COLORS = "COLORS" (for colors)
to override a system file name, set the variable name
to a name of your choice BEFORE the first call to
INITSUP(). Do not use an extension.
Examples
--------
* beginning of top level program
_REPORTS = "C:\AMY\AMYRPT"
_QUERIES = "C:\AMY\AMYQBE"
INITSUP()
_SUPERPRN = "LPT2"
C_NORMCOL = "W/N,+GR/R,,,N/W"